package com.github.eden.db;

import lombok.Data;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;

@Data
public class DbColumn {

    // db
    private String columnName; // 列名
    private String columnType; // 类型
    private String columnComment; // 注释
    private Boolean isAllowNull; // 是否必填
    private Boolean isPrimaryKeyColumn = false; // 是否主键
    private Boolean isCreateTimeColumn = false;
    private Boolean isUpdateTimeColumn = false;
    private Boolean isDeletedColumn = false;

    // bean
    private String fieldName; // 字段名
    private String fieldType; // 字段类
    private String fieldFullType; // 字段类型，包名+类名

    private String uiLabelName; // 前端显示名
    private String uiComponentType; // 前端组件
    private Map<String, String> uiKeyValues = new LinkedHashMap<>(); // 值映射

}
